﻿@using OA.Model.View;
@using OA.Model;
@using X.PagedList;
@using OA.Core.Helper;

@model PageList<Mailbox>
@{
    CustomForm infoCustomForm = ViewBag.CustomForm;
    string title = "我的收件箱";
    ViewBag.Title = title;
    Layout = "~/Areas/Member/Views/Shared/_Layout.cshtml";

}
<div class="layui-tab layui-tab-brief" lay-filter="user">
    <div class="layui-form layui-tab-content" id="LAY_ucm">
        <form action="" class="layui-form">
            <div class="layui-form-item">
                <label class="layui-form-label" style="width: auto; padding-right: 5px;">主题：</label>
                <div class="layui-input-inline">
                    <input type="text" name="keyWord" class="layui-input" value="" />
                </div>
                <button type="button" class="layui-btn searchButton">搜索</button>
            </div>
        </form>
    </div>
    <table class="layui-table" lay-data="{url:'GetInBoxData', cellMinWidth: 80, page: true,limit:15}" id="resultList" lay-filter="resultList">
        <thead>
            <tr>
                <th lay-data="{field:'No', width:120}">单据号</th>
                <th lay-data="{field:'Title', width:120}">标题</th>

                <th lay-data="{field:'FromDepartmentName', width:120}">部门</th>
                <th lay-data="{field:'FromPositionName', width:120}">岗位</th>
                <th lay-data="{field:'FromEmpName', width:120}">发送人</th>
                <th lay-data="{field:'CreateDateTime', width:120}">发送时间</th>
                <th lay-data="{field:'StatusName', width:120}">状态</th>
                <th lay-data="{width:80, align:'center', toolbar: '#barDemo'}">操作</th>
            </tr>
        </thead>
    </table>
    <script type="text/html" id="barDemo">
        <a class="layui-btn layui-btn-xs" href="javascript:ShowPage('/Member/Mailbox/Index/{{d.ID}}?type=inbox','邮件：{{d.Title}}')">查看</a>
    </script>
</div>